"""
URL configuration for DjangoProject project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
# from .views import index, http_url_data, http_get_data, http_post_form_data, http_post_json_data,
from book_manager import views

urlpatterns = [
    path('index/', views.index),
    path('url-data/<id>/<title>', views.http_url_data),
    path('get-data', views.http_get_data),
    path('post-form-data', views.http_post_form_data),
    path('post-json-data', views.http_post_json_data),
    # path('mobile-converter/<mobile:phone>/', views.mobile_convert),
    path('response_test', views.http_response_test),
    path('response_json', views.json_response_test),
    path('redirect_to', views.http_redirect),
    path('redirect_admin', views.admin_redirect),
    path('get_all_cookie', views.get_all_cookie),
    path('set_cookie', views.set_cookie),
    path('get_cookie', views.get_cookie),

    path('get_all_session', views.get_all_session),
    path('custom_config', views.custom_config),
    path('get_book_info_list', views.get_book_info_list),
    path('book_info', views.BookInfoView.as_view())
]


